<form id="pagerForm" method="post" action="/admin/employee/" >
	<input type="hidden" name="col" value="">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="keywords" value="${page.keywords}" />
	<input type="hidden" name="numPerPage" value="${page.numPerPage}" />
	<input type="hidden" name="orderField" value="${page.orderField}" />
</form>
<h2 class="contentTitle">职员信息</h2>
<div class="page">
		<div class="pageHeader">
		<form action="/admin/employee/" method="post" onsubmit="return navTabSearch(this)">		
			<div class="searchBar">
				<ul class="searchContent">
					<li><label>用户：</label>
						<select class="combox" name="col">
							<option value="">全部</option>
						    %for i in title:							
							  <option value="${i}" 
							  %if i == page.col:
							    selected
						      %endif
					          >${title[i]}</option>					
					        %endfor							
						</select>						
						<input type="text" name="keywords" value="${page.keywords}" />
					</li>
					
				</ul>
				<div class="subBar">
					<ul>
						<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
						
					</ul>
				</div>
			</div>
		</form>
		</div>	
<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="/admin/employee/add" target="dialog" rel="user_add" mask=true title="增加用户" width="1000" height="550"><span>添加</span></a></li>
				<li><a class="delete" href="/admin/employee/delete/{list_id}" target="navTabTodo" title="确定要删除吗?" width="500"><span>删除</span></a></li>
				<li><a class="edit" href="/admin/employee/edit/{list_id}" target="dialog" mask=true title="编辑用户"><span>修改</span></a></li>
				<li class="line">line</li>
				<li><a class="icon" href="javascript:void(0);"><span>导入EXCEL</span></a></li>
			</ul>
		</div>
		<table class="table" layouth="180" width="100%">
			<thead>
				<tr>
					<th width="10"><input type="checkbox" class="checkboxCtrl" group="c1" /></th>
					<th width="40">${title['ee_code']}</th>
					<th width="80">${title['ee_name']}</th>
					<th width="80">${title['dept_id']}</th>
					<th width="40">${title['et_id']}</th>
					<th width="40">${title['ee_sex']}</th>
					<th width="40">${title['ee_email']}</th>	
					<th width="80">${title['ee_address']}</th>	
					<th width="40">${title['ee_im']}</th>	
					<th width="40">${title['ee_telphone']}</th>
					<th width="40">${title['ee_mobile']}</th>	
					<th width="40">${title['is_active']}</th>	
					<th width="80">${title['ee_notes']}</th>				
				</tr>
			</thead>
			<tbody>
			%for u in list:
				<tr target="list_id" rel="${u.ee_id}">
					<td><input type="checkbox" name="c1" value="1" /></td>
					<td>${u.ee_code}</td>
					<td>${u.ee_name}</td>
					<td>${u.dept.dept_name}</td>
					<td>${u.employeetype.et_name}</td>
					<td>${u.ee_sex}</td>
					<td>${u.ee_email}</td>	
					<td>${u.ee_address}</td>	
					<td>${u.ee_im}</td>	
					<td>${u.ee_telphone}</td>
					<td>${u.ee_mobile}</td>	
					<td>${u.is_active}</td>	
					<td>${u.ee_notes}</td>						
				</tr>
			%endfor
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" change="navTabPageBreak" param="numPerPage">
					%for i in ['20','50','100','200']:
					<option value="${i}" 
						%if i == page.numPerPage:
							selected
						%endif	
					>${i}</option>					
					%endfor
				</select>
				<span>共${page.totalCount}条</span>
			</div>
			
			<div class="pagination" targetType="navTab" totalCount="${page.totalCount}" numPerPage="${page.numPerPage}" pageNumShown="${page.pageNumShown}" currentPage="${page.currentPage}"></div>

		</div>
	</div>
</div>
